<?php
require("conn.php");
$tk=$_POST["taikhoan"];
$mk=$_POST["mk1"];
$ht=$_POST["hoten"];
$gt=$_POST["gioitinh"];
$dt=$_POST["dienthoai"];
$ns=$_POST["ngaysinh"];
$email=$_POST["email"];
$hinh=$_FILES["hinhanh"]["name"];
$mt=$_POST["mota"];
$sql="INSERT INTO `ajax`.`thanh_vien` (
`username` ,
`pass` ,
`ten` ,
`ngaysinh` ,
`dienthoai` ,
`email` ,
`Hinh` ,
`Mota` ,
`gioitinh` 
)
VALUES (
'$tk', '$mk', '$ht', 'ns', '$dt', '$email', '$hinh', '$mt', '$gt'
)";
if(mysql_query($sql))
{

?>
<br/><br/>
<table width="335" border="0" style="border:outset;border-bottom-style:outset" align="center">
  <tr>
    <td width="325"><?php echo('Chao ban <b>'.$ht.'</b>! '); ?>Xin ch&uacute;c m&#432;ng b&#7841;n!!! </td>
  </tr>
  <tr>
    <td>B&#7841;n &#273;&atilde; &#273;&#259;ng k&yacute; th&agrave;nh c&ocirc;ng.</td>
  </tr>
  <tr>
    <td>&#272;&#7875; tr&#7903; l&#7841;i di&#7877;n &#273;&agrave;ng b&#7841;n vui l&ograve;ng <a href="#" style="text-decoration:none;border:outset"> Click v&agrave;o &#273;&acirc;y</a>. </td>
  </tr>
</table>
<?php
}
else
{
	echo('Bạn đã đăng ký thất bại, bạn vui lòng thử lại lần sau.');
}
?>